﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    class SumUtils
    {
        public void test(int a, int b) {
            Console.WriteLine("和为" + (a + b));
        }
        public void test(double a, double b)
        {
            Console.WriteLine("和为" + (a + b));
        }
        public void test(string a, string b)
        {
            Console.WriteLine("和为" + (a + b));
        }
        public void test(int a) {
            int count = 0;
            for (int i = 1; i <= a; i++) {
                count += i;
            }
            Console.WriteLine("和为"+count);
        }
    }
}
